Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Amund Haugsand 1 post 21 karma points
    Oct 29, 2010 @ 20:13
    Amund Haugsand
    0

    How can I get a non-breaking space into [box] header code?

    First of all, I'm a newbie to Umbraqco. I have a box header that goes "Yadda yadda ..... yadda increased by 26 %", and of course the "%" ends up on a new line all by itself. Very unaesthetic, even worse than "26%". I want the "26 %" to stay together, but entering "26 %" at the end of the header string gets rendered verbatim on the published page. All hints are highly appreciated, thanks in advance!

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Oct 29, 2010 @ 20:24
    Tom Fulton
    1

    Hi - how are you displaying the text, via an XSLT macro?  If so, add disable-output-escaping="yes" to the value-of tag to render as HTML.

    <xsl:value-of select="$currentPage/myProperty" disable-output-escaping="yes"/>

    That should fix the &nbsp; getting written out as text, not sure it will fix your wrapping problem though..

Please Sign in or register to post replies

Write your reply to:

Draft